<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML">
<html>
<head>
<base href="<%=basePath%>">
<base target="_blank">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="大学生导航,大学城">
<meta http-equiv="description" content="大学生导航网">
<link rel="stylesheet" type="text/css" href="css/skin-green.css">
<script type="text/javascript">	
	/*切换选项卡显示*/
	function setTab(name,cursel,n) {
		for (var i = 1; i <= n; i++) {
			var tab_menu = document.getElementById(name+i);
			var tab_content = document.getElementById("con_" + name + i);
			tab_menu.className = i == cursel ? "hover" : "";
			tab_content.style.display = i == cursel ? "block" : "none";
		}
	}
	
	function searchKey(word){
		var search_input = document.getElementById("baidu_input");
		search_input.value=word;
		var search_button = document.getElementById("baidu_search");
		search_button.click();
	}
	
	/*加载页面后执行*/
	window.onload = function() {  
		setTab("sitemenu", 1, 4);
	};
</script>
<title>导航网-首页</title>
</head>
<body class="skin-color-green">
	<div class="g_hf-bg layout-userbar">
		<div class="w960px layout-inner">
			<div id="box-userbar" class="box-userbar">
				<div id="userBar" class="w960px g_clr widget-userbar">
					<div class="g_fl">
						<span>当前时间：</span>
					</div>
					<div class="g_fr">
						<a href="#">设为主页</a> <a href="info/glean?type=0">给我留言</a> <a href="info/glean?type=1">提交网站</a> <a
							href="user/login.jsp">用户登录</a> <a href="admin/index.jsp">后台管理</a>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="layoutContainer" class="g_hf-bg layout-container">
		<div class="layout-container-inner">
			<div class="w960px layout-header">
				<div class="widget-header">
					<div class="g_fl">
						<span id="box-logo" class="box-logo"> <a id="indexLogo"
							title="网站logo"> <img width="186" height="68"
								src="img/site-logo.png"> </a> </span>
					</div>
					<div class="g_md">
						<div class="box-banner">
							<img src="img/ad_banner.gif" alt="宣传画">
						</div>
					</div>
				</div>
			</div>
			<div class="w960px layout-search-hotword">
				<div class="widget-search">
					<div class="widget-searchbottom">
						<div class="box-search_l">
							<a class="js_logo-href" title="百度logo"> <img
								class="js_logo-img" width="97" height="32"
								src="http://s1.hao123img.com/index/images/search_logo/web.png"
								alt="百度首页"> </a>
						</div>
						<div class="box-search_c">
							<form id="baidu_search_form" action="http://www.baidu.com/s">
								<div class="box-search_input">
									<input id="baidu_input" class="js_word" type="text" name="word"
										maxlength="100" autocomplete="off"> <span
										style="display: none"> <input name="ie" value="utf-8">
									</span>
								</div>
								<span class="corner box-search_btn">
									<button id="baidu_search" class="m" type="submit">百度一下</button>
								</span>
							</form>
						</div>
					</div>
				</div>
				<div class="widget-search-keybox">
					<div class="box-search-keyword">
						<s:iterator value="urlItemList_search" id="searchItem" status="st">
							<span><a onclick="searchKey('${searchItem.name}')"><s:property
										value="#searchItem.name" /> </a> </span>&nbsp;&nbsp;&nbsp;
						</s:iterator>
					</div>
				</div>
			</div>
			<div class="w960px layout-content g_clr">
				<div id="layout-content" class="layout-content-ct">
					<div id="layout-famoussite" class="layout-famoussite">
						<div id="tab_site" class="widget_tab">
							<div class="widget_tab_menu">
								<ul>
									<s:iterator value="classUrlItemList" id="classItemList"
										status="st">
										<li id="sitemenu<s:property value="#st.count"/>"
											onmouseover="setTab('sitemenu',${st.count}, <s:property value="classUrlItemList.size()"/>)">${classItemList.urlClass.name}
										</li>
									</s:iterator>
								</ul>
							</div>
							<div class="widget_tab_content">
								<s:iterator value="classUrlItemList" id="classItemList"
									status="st">
									<div id="con_sitemenu<s:property value="#st.count"/>"
										style="display:none">
										<div class="box-site">
											<div class="widget-site">
												<ul class="js_bd site-bd">
													<s:iterator value="#classItemList.urlItemList" id="urlItem"
														status="st">
														<li class="js_site-item site-item site-item-normal"><a
															href=<s:property value="#urlItem.url"/>>${urlItem.name}
														</a></li>
													</s:iterator>
												</ul>
											</div>
										</div>
										<div class="wf-line"></div>
									</div>
								</s:iterator>
							</div>
						</div>
					</div>
					<div class="wf-line"></div>
					<div class="layout-friend">
						<div id="box-coolsite" class="box-coolsite">
							<div class="widget-friend">
								<s:iterator value="urlItemList_friend" id="friendItem"
									status="st">
									<span><a href=<s:property value="#friendItem.url"/>><s:property
												value="#friendItem.name" /> </a> </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</s:iterator>
							</div>
						</div>
					</div>
					<div class="wf-line"></div>
					<div class="layout-coolsite">
						<div class="box-cool">
							<div class="widget-cool">
								<s:iterator value="classUrlItemList_cool" id="coolClassItem"
									status="st">
									<div class="g_clr wf-inner last">
										<h3>
											<span><strong>${coolClassItem.urlClass.name}</strong>
											</span>
										</h3>
										<ul>
											<s:iterator value="#coolClassItem.urlItemList" id="coolItem"
												status="st">
												<li><span><a href="${coolItem.url }">${coolItem.name}</a>
												</span>
												</li>
											</s:iterator>
										</ul>
									</div>
								</s:iterator>
							</div>
						</div>
					</div>
				</div>
				<div id="layout-side" class="layout-content-slider">
					<div class="widget-news">
						<ul>
							<s:iterator value="urlItemList_news" id="newsItem" status="st">
								<li><span><a
										href=<s:property value="#newsItem.url"/>><s:property
												value="#newsItem.name" /> </a> </span> <br></li>
							</s:iterator>
						</ul>
					</div>
				</div>
			</div>
			<div class="w960px layout-adbar">
				<div class="widget-adbar">
					<img src="img/welcome.gif" alt="广告位">
				</div>
			</div>
			<div class="layout-bottom">
				<div class="box-tools">
					<div class="widget-tools widget-tools-w">
						<ul class="groups">
							<li class="bg">
								<h4>友情链接</h4> <span> <a href="http://www.163.com">网易</a>
							</span></li>
						</ul>
					</div>
				</div>
			</div>
			<div class="wf-line"></div>
			<div class="layout-footer">
				<div id="box-copyright">
					<div class="widget-copyright" monkey="copyright">
						<p class="links">关于本站</p>
						<p class="copyright">
							本站说明 <span class="gray"> - </span> <a
								href="http://www.miibeian.gov.cn/"> 京ICP证XXXXXX号 <i
								class="g_icon i-papers"></i> </a>
						</p>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
